import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export let useXietong= defineStore('showXietong', () => {

  let show_xietong=ref(false);

  let cur_paralleId=ref("0");

  let show_xietong_getter = computed(() => show_xietong.value);

  let cur_paralleId_getter=computed(()=>cur_paralleId.value)

  function show_xietong_fn(status) {
    show_xietong.value = status   //必须使用.value
  };

  function cur_paralleId_fn(status){
    cur_paralleId.value = status   //必须使用.value
  }

  return { show_xietong_getter, show_xietong_fn,cur_paralleId_getter,cur_paralleId_fn}
  
});
